<?php
session_start();
session_destroy();
$url=$_SERVER['HTTP_REFERER'];
header("Location: $url");